package com.ruoyi.depot.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import com.ruoyi.common.annotation.Excel;
import lombok.Data;

/**
 * walmart备货产品明细表
 * @TableName walmart_stock_product_details
 */
@TableName(value ="walmart_stock_product_details")
@Data
public class WalmartStockProductDetails implements Serializable {

    /**
     * 备货计划id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 备货计划id
     */
    @TableField(value = "stock_id")
    private String stockId;

    /**
     * 产品sku
     */
    @TableField(value = "sku")
    private String sku;

    /**
     * 产品id
     */
    @TableField(exist = false)
    private String productId;

    /**
     * 备货产品id
     */
    @TableField(value = "shipments_product_id")
    private String shipmentsProductId;

    /**
     * 产品发货数量
     */
    @TableField(value = "shipments_product_count")
    private Integer shipmentsProductCount;

    /**
     * 产品发货数量
     */
    @TableField(value = "freight")
    private BigDecimal freight;

    /**
     * 是否已经导入装箱清单
     */
    @TableField(value = "flag")
    private Integer flag;

    /** 货运状态 */
    @TableField(exist = false)
    private String receiptStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WalmartStockProductDetails other = (WalmartStockProductDetails) that;
        return (this.getStockId() == null ? other.getStockId() == null : this.getStockId().equals(other.getStockId()))
            && (this.getShipmentsProductId() == null ? other.getShipmentsProductId() == null : this.getShipmentsProductId().equals(other.getShipmentsProductId()))
            && (this.getShipmentsProductCount() == null ? other.getShipmentsProductCount() == null : this.getShipmentsProductCount().equals(other.getShipmentsProductCount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStockId() == null) ? 0 : getStockId().hashCode());
        result = prime * result + ((getShipmentsProductId() == null) ? 0 : getShipmentsProductId().hashCode());
        result = prime * result + ((getShipmentsProductCount() == null) ? 0 : getShipmentsProductCount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", stockId=").append(stockId);
        sb.append(", shipmentsProductId=").append(shipmentsProductId);
        sb.append(", shipmentsProductCount=").append(shipmentsProductCount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}